-- GENERATED SPELL FOR [Korgaah] --


function spell0_20723(pUnit, Event) --@Bloodmaul Intoxication,n/a--
pUnit:FullCastSpellOnTarget(35240,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20723', 25000, 1)
end

function spell1_20723(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_20723', 544, 1)
end

function spell2_20723(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(34802,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20723', 6322, 1)
end

function spell3_20723(pUnit, Event) --@Piercing Howl,Self--
pUnit:FullCastSpellOnTarget(23600,pUnit)
pUnit:RegisterEvent('Sorts_20723', 6257, 1)
end

function Sorts_20723(pUnit, Event)
local choix_sorts_20723 = math.random(0, 3)
if choix_sorts_20723 == 0 then
pUnit:RegisterEvent('spell0_20723', 1, 1)
end
if choix_sorts_20723 == 1 then
pUnit:RegisterEvent('spell1_20723', 1, 1)
end
if choix_sorts_20723 == 2 then
pUnit:RegisterEvent('spell2_20723', 1, 1)
end
if choix_sorts_20723 == 3 then
pUnit:RegisterEvent('spell3_20723', 1, 1)
end
end

function mob20723_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20723', math.random(1500, 3000), 1)
end

function mob20723_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20723_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20723_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20723, 1, 'mob20723_Action')
RegisterUnitEvent(20723, 2, 'mob20723_Leave')
RegisterUnitEvent(20723, 3, 'mob20723_Kill')
RegisterUnitEvent(20723, 4, 'mob20723_Die')
